package com.up.vms.domain.vm.repository;

import com.up.vms.domain.vm.entity.Banner;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface BannerRepository extends JpaRepository<Banner, Long>, JpaSpecificationExecutor<Banner> {

    Page<Banner> findAllByBannerNameLike(String bannerName, Pageable pageable);

    Page<Banner> findAllByStatus(Integer status, Pageable pageable);

}
